test-app

Purpose

Runs all Grails unit and integration tests and outputs reports. The command will return appropriate response codes for embedding with continuous integration servers.

Examples

grails test-app
grails test-app Foo
grails test-app Foo Bar

Description

Usage:

grails [environment]* test-app [names]*

Fired Events:

Executes the Grails unit and integration tests located in the test/unit and test/integration directories. By default all tests are executed, but you can specify the names of the tests (without the "Tests" suffix) as argument to the command:

grails test-app Foo
grails test-app Foo Bar

You can also choose to only run the unit or integration tests:

grails test-app -unit
grails test-app -integration

The first example will execute a test called FooTests.groovy whilst the second will execute FooTests.groovy and BarTests.groovy if they exist.